package com.basketball.service.impl;

import com.basketball.entity.ClubDate;
import com.basketball.repository.ClubDateRepository;
import com.basketball.service.ClubDateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ClubDateServiceImpl implements ClubDateService {
    @Autowired
    private ClubDateRepository clubDateRepository;
    @Override
    public List<ClubDate> getAll() {
        return clubDateRepository.findAll();
    }
}
